public class Solution {
    public static void main(String[] args) {
        int n = 4;
        if (n % 2 == 0) {
            System.out.println(1);
        } else {
            System.out.println(0);
        }
    }
}